cmake_minimum_required(VERSION 3.7.2)
project(acclsen)
set(CMAKE_CXX_STANDARD 11)

include_directories(../binder/user/include)
link_directories(../binder/user)

add_library(cssl cssl2cpp/include/cssl.h cssl2cpp/source/cssl.cpp)
add_library(cssl2cpp cssl2cpp/include/cssl2cpp.h cssl2cpp/source/cssl2cpp.cpp)
add_library(acclsen_data acclsen/include/acclen_data.h acclsen/source/acclsen_data.cpp)
add_library(acclsen_driver acclsen/include/acclsen_driver.h acclsen/source/acclsen_driver.cpp)
add_library(acclsen_driver2cpp acclsen/include/acclsen_driver2cpp.h acclsen/source/acclsen_driver2cpp.cpp)

add_compile_options(-fpermissive --no-warnings)
add_executable(acclsen_server server/source/server.cpp server/include/service_api.h)

target_link_libraries(acclsen_driver acclsen_data)
target_link_libraries(acclsen_driver2cpp acclsen_data)
target_link_libraries(acclsen_server acclsen_driver2cpp acclsen_driver cssl2cpp cssl pthread binder_cpp binder)
